package persentation.presentTeacher;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import java.awt.SystemColor;

public class BottomPanel extends JPanel {
	

	/**
	 * Create the panel.
	 */
	private JLabel welcomeLabel;
	private JLabel nameLabel;
	private ImageIcon buttomIcon;
	private JLabel buttomLabel;
//	private JLabel welcomeLabel;
//	private JLabel nameLabel;
	public BottomPanel(String teacherName) {

		setSize(802,707);
		setBackground(SystemColor.menu);
		setLayout(null);
		
		
		
		
		buttomIcon=new ImageIcon("Graphics/teacherGraphics/teacherbottom.png");
		buttomLabel=new JLabel(buttomIcon);
		buttomLabel.setBounds(10,-75,800,683);
		add(buttomLabel,-1);
		
		welcomeLabel=new JLabel("欢迎教师用户");
		welcomeLabel.setFont(new Font("华文新魏", 0, 30));
		welcomeLabel.setBounds(450,0,400,100);
		welcomeLabel.setVisible(true);
		add(welcomeLabel,0);
		
		
		
		nameLabel=new JLabel(teacherName);
		nameLabel.setFont(new Font("华文新魏", 0,40));
		nameLabel.setBounds(650,0,400,100);
		nameLabel.setVisible(true);
		add(nameLabel,0);
		
	

	}
	
	

}
